const { resolve } = require('path')
const { addDecoratorsLegacy, override, fixBabelImports } = require('customize-cra')

const customize = () => (config) => {
  config.resolve.alias['@'] = resolve('./src')
  return config
}

module.exports = override(
  addDecoratorsLegacy(),
  customize(),
  fixBabelImports('import', {
    libraryName: 'antd-mobile',
    style: 'css',
  })

)